export default {
	created(){
		uni.hideHomeButton()	
	},
	data() {
		return {
			share_config: {
				imageUrl: this.$cce_envConfig.assets +
					'share.jpg', //分享图标，路径可以是本地文件路径、代码包文件路径或者网络图片路径。支持PNG及JPG。显示图片长宽比是 5:4
				title: 'CCE互动组',
				path: '/pages/demo/demo?shareid=123'
			},
		}
	},
	methods: {
		configShareFn(data = {}) {
			if (this.$cce_toolkit.verify_type(data) !== 'Object') return;
			for (let key in data) {
				if (data[key]) this.share_config[key] = data[key]
			}
		},
	},
	onShareAppMessage(res) {
		const _self = this;
		if (res.from === 'button') {} // 来自页面内分享按钮
		console.log(res);
		return _self['share_config']
	}
}
